package com.linkage.seapeak.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * 表决人员的组
 */
public class VoteGroup implements Serializable {

    public boolean isExpand() {
        return isExpand;
    }

    public void setExpand(boolean expand) {
        isExpand = expand;
    }

    /**
     * id : 48752f4d9c41411a89f4d352d3b4b616
     * name : 债务修改分组名称Q
     * code : 4odfhdtksijh5q3sembtje9a9g
     * canDelete : true
     * ordinary : true
     * guarantee : false
     * other : false
     * voteId : d8b7336332024acbbeae12238695ba97
     * sort : 1
     * totalVoteMoney : 0
     * memberCount : 2
     * members : null
     * opBy :
     * opAt : 1553738557
     * delFlag : false
     */

    private int totalCount;
    private String id;
    private String name;
    private String code;
    private boolean canDelete;
    private boolean ordinary;
    private boolean guarantee;
    private boolean other;
    private String voteId;
    private int sort;
    private double totalVoteMoney;
    private int memberCount;



    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    private List<CrediterUser> members;
    private String opBy;
    private int opAt;
    private boolean delFlag;

    public boolean isExpand = true;

    public ParticipantsTmpPagination participantsTmpPagination;

    public String getId() {
        if (id == null)
            id = "";
        return id;
    }

    public List<CrediterUser> getMembers() {
        return members;
    }

    public void setMembers(List<CrediterUser> members) {
        this.members = members;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public boolean isCanDelete() {
        return canDelete;
    }

    public void setCanDelete(boolean canDelete) {
        this.canDelete = canDelete;
    }

    public boolean isOrdinary() {
        return ordinary;
    }

    public void setOrdinary(boolean ordinary) {
        this.ordinary = ordinary;
    }

    public boolean isGuarantee() {
        return guarantee;
    }

    public void setGuarantee(boolean guarantee) {
        this.guarantee = guarantee;
    }

    public boolean isOther() {
        return other;
    }

    public void setOther(boolean other) {
        this.other = other;
    }

    public String getVoteId() {
        return voteId;
    }

    public void setVoteId(String voteId) {
        this.voteId = voteId;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public double getTotalVoteMoney() {
        return totalVoteMoney;
    }

    public void setTotalVoteMoney(double totalVoteMoney) {
        this.totalVoteMoney = totalVoteMoney;
    }

    public int getTotalNum() {
        return totalNum;
    }

    public void setTotalNum(int totalNum) {
        this.totalNum = totalNum;
    }

    public int totalNum;

    public int getMemberCount() {
        if (participantsTmpPagination != null && memberCount == 0)
            return participantsTmpPagination.totalCount;
        else
            return memberCount;
    }

    public void setMemberCount(int memberCount) {
        this.memberCount = memberCount;
    }

    public int getPreMemberCount() {
        if (participantsTmpPagination == null)
            return 0;
        else
            return participantsTmpPagination.totalCount;
    }

    public String getOpBy() {
        return opBy;
    }

    public void setOpBy(String opBy) {
        this.opBy = opBy;
    }

    public int getOpAt() {
        return opAt;
    }

    public void setOpAt(int opAt) {
        this.opAt = opAt;
    }

    public boolean isDelFlag() {
        return delFlag;
    }

    public void setDelFlag(boolean delFlag) {
        this.delFlag = delFlag;
    }

    class ParticipantsTmpPagination implements Serializable {
        public int totalCount;
    }

    public ParticipantsPageList getParticipantsPageList() {
        return participantsPageList;
    }

    public void setParticipantsPageList(ParticipantsPageList participantsPageList) {
        this.participantsPageList = participantsPageList;
    }

    public ParticipantsPageList participantsPageList;

}
